package cn.lix.sc.rpc.oauth2.service;

import cn.lix.sc.rpc.oauth2.entity.TbPermission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 权限表(TbPermission)表服务接口
 *
 * @author makejava
 * @since 2021-05-13 22:25:46
 */
public interface TbPermissionService extends IService<TbPermission> {

    /**
     * 根据用户ID获取权限
     * @param userId
     * @return
     */
    List<TbPermission> getPermissionByUserId(Long userId);

}
